package com.seed.core.action;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.seed.core.enumeration.ActionType;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class UpdateAction extends Action {
    private List<String> declares; // 功能所需要的数据列

    public List<String> getDeclares() {
        return declares;
    }

    public void setDeclares(List<String> declares) {
        this.declares = declares;
    }

    @Override
    public Action copy() {
        return null;
    }

    @Override
    public List<RequestMethod> getMethods() {
        return List.of(RequestMethod.GET, RequestMethod.PUT);
    }
}
